package cn.sundat.dao;
import java.util.List;

import org.hibernate.criterion.DetachedCriteria;
import org.hibernate.criterion.Restrictions;

import cn.sundat.model.CompanyProduct;
/**
 * 具体的产品
 * author LeeLiang
 */
public class CompanyProductDaoImpl extends BaseDaoImpl<CompanyProduct> implements CompanyProductDao {

	@Override
	public List<CompanyProduct> findPType(String cate_id) {
		List<CompanyProduct> list = (List<CompanyProduct>) this.getHibernateTemplate().find("from CompanyProduct where comp_id=?", cate_id);
		return list;
	}
	
}
